package com.shsxt.dao;


import java.util.List;
import java.util.Map;

import com.shsxt.model.COrder;
import com.shsxt.model.DOrder;
import com.shsxt.model.Income;
import com.shsxt.model.JOrder;
import com.shsxt.model.KOrder;
import com.shsxt.model.Notified;
import com.shsxt.model.ROrder;
import com.shsxt.model.SOrder;
import com.shsxt.model.ServicePersonal;
import com.shsxt.model.WithdrawDetail;
import com.shsxt.vo.AuntOrderQuery;
import com.shsxt.vo.Evaluation;
import com.shsxt.vo.EvaluationScore;
import com.shsxt.vo.OrderCircle;

public interface AuntDao {
	//阿姨的周期订单
	public List<OrderCircle> findDoneScoreCircle(String servicePersonal);
	public List<OrderCircle> findDoneUnscoreCircle(String servicePersonal);
	public List<OrderCircle> findUndoneCircle(String servicePersonal);
	//查询可以抢的订单(已付款)
	public List<AuntOrderQuery> findPaiedOrder( );
	public List<AuntOrderQuery> findNograbOrder();

	
	public List<OrderCircle> findPaiedCircle();
	public List<OrderCircle> findNograbCircle();

	//订单未完成(该用户未完成的订单)
		public List<AuntOrderQuery> findAuntOrder(String servicePersonal);

		//点击服务完成   更新订单状态
		public int updateRState(String orderNumber);
		public int updateSState(String orderNumber);
		public int updateKState(String orderNumber);
		public int updateJState(String orderNumber);
		public int updateDState(String orderNumber);
		public int updateCState(String orderNumber);
		//查看评价
		public List<Evaluation> evaluation(String servicePersonal);
		
		//找这个订单
		public ROrder findROrder(String orderNumber);
		public SOrder findSOrder(String orderNumber);
		public KOrder findKOrder(String orderNumber);
		public JOrder findJOrder(String orderNumber);
		public DOrder findDOrder(String orderNumber);
		public COrder findCOrder(String orderNumber);
		//找这个订单的阿姨信息
		public ServicePersonal findPersonal(String servicePersonal);
	    //去评价
		public void updateEvaluate(Map<String, Object> param);
		//取消订单
		public int cancelROrder(String orderNumber);
		public int cancelSOrder(String orderNumber);
		public int cancelKOrder(String orderNumber);
		public int cancelJOrder(String orderNumber);
		public int cancelDOrder(String orderNumber);
		public int cancelCOrder(String orderNumber);
		//删除订单
		public int deleteROrder(String orderNumber);
		public int deleteSOrder(String orderNumber);
		public int deleteKOrder(String orderNumber);
		public int deleteJOrder(String orderNumber);
		public int deleteDOrder(String orderNumber);
		public int deleteCOrder(String orderNumber);
		//去评价
		public void updateREvaluate(Map<String, Object> param);
		public void updateSEvaluate(Map<String, Object> param);
		public void updateKEvaluate(Map<String, Object> param);
		public void updateJEvaluate(Map<String, Object> param);
		public void updateDEvaluate(Map<String, Object> param);
		public void updateCEvaluate(Map<String, Object> param);
		
		//获取阿姨
		public ServicePersonal getAuntInformationByName(String servicePersonal);
		//查找用户的收益明细
		public List<Income> findIncomes(String servicePersonal);
		//获取所有通知
		public List<Notified> getNotified(Map<String, Object> param);
		//提现明细
		public List<WithdrawDetail> findWithdrawDetailByName(String servicePersonal);
		//提现提交
		public int  addWithdraw(Map<String, Object> param);
		
		//进入提现
		public String enterWithdraw(Map<String, Object> param);
		//一条订单评价
		public Evaluation REvaluation(String orderNumber);
		public Evaluation SEvaluation(String orderNumber);
		public Evaluation KEvaluation(String orderNumber);
		public Evaluation JEvaluation(String orderNumber);
		public Evaluation DEvaluation(String orderNumber);
		public Evaluation CEvaluation(String orderNumber);
		public void raffirm(Map<String, Object> param);
		public void saffirm(Map<String, Object> param);
		public void kaffirm(Map<String, Object> param);
		public void jaffirm(Map<String, Object> param);
		public void daffirm(Map<String, Object> param);
		public void caffirm(Map<String, Object> param);
		public void addFeedBack(Map<String, Object> param);
		public ServicePersonal auntLogin(Map<String, Object> param);
		public ServicePersonal findAuntByServicePersonal(String servicePersonal);
		public ServicePersonal findAuntByServicePersonal(ServicePersonal servicePersonal);
		public Notified findNotifiedById(String id);
		public void updateAuntNotifiedById(String phoneNumber);
		public void updateNotifiedById(String id);
		public void updateUserNotifiedById(String phoneNumber);
		public List<AuntOrderQuery> findAuntWorkingOrder(String servicePersonal);
		public List<OrderCircle> findAuntWorkingCircle(String servicePersonal);
		public void updateBalanceBywithdraw(Map<String, Object> param);
		public void createIncome(Map<String, Object> param);
		public void updateAuntBalance(Map<String, Object> param);
		public List<EvaluationScore> findEvaluationOrder(String servicePerosnal);
		public void updateScoreServicePersonal(Map<String, Object> param);
		public void createNotifiedMessage(Map<String, Object> param);


		


		
		

		
	
	

	

	

	


	
	
	 




	

	

	

	

}
